import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import login from '@/components/login'
import registry from '@/components/registry'
import video1 from '@/components/video1'
import articleInfo from '@/components/articleInfo'
import articleAdd from '@/components/articleAdd'
import article1 from '@/components/article1'
import userInfo from '@/components/userInfo'
import look from '@/components/look'
import videoAdd from '@/components/videoAdd'
import videoinfo from '@/components/videoinfo'
import shop from '@/components/shop'
import cart from '@/components/cart'
import order from '@/components/order'
import orderMsg from '@/components/orderMsg'
import articleCart from '@/components/articleCart'
import articleOrder from '@/components/articleOrder'
import articleFavority from '@/components/articleFavority'
import videoQAcode from '@/components/videoQAcode'


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,

    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/registry',
      name: 'registry',
      component: registry
    },
    {
      path: '/articleInfo',
      name: 'articleInfo',
      component: articleInfo
    },
    {
      path: '/article1',
      name: 'article1',
      component: article1
    },
    {
      path: '/articleAdd',
      name: 'articleAdd',
      component: articleAdd
    },
    {
      path: '/userInfo',
      name: 'userInfo',
      component: userInfo
    },
    {
      path: '/video1',
      name: 'video1',
      component: video1
    },
    {
      path: '/look',
      name: 'look',
      component: look
    },
    {
      path: '/videoinfo',
      name: 'videoinfo',
      component: videoinfo
    },
    {
      path: '/videoAdd',
      name: 'videoAdd',
      component: videoAdd
    },
    {
      path: '/shop',
      name: 'shop',
      component: shop
    },
    {
      path: '/cart',
      name: 'cart',
      component: cart
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },{
      path: '/orderMsg',
      name: 'orderMsg',
      component: orderMsg,

    },
    {
      path: '/articleCart',
      name: 'articleCart',
      component: articleCart
    },
    {
      path: '/articleOrder',
      name: 'articleOrder',
      component: articleOrder
    },
    {
      path: '/articleFavority',
      name: 'articleFavority',
      component: articleFavority
    },
    {
      path: '/videoQAcode',
      name: 'videoQAcode',
      component: videoQAcode
    }
  ]
})
